package com.boot.mgt.dao.mysql

import com.boot.mgt.model.TaAccident
import com.boot.mgt.model.vo.ExcelCountVo
import com.boot.mgt.model.vo.TaAccidentListVo
import com.boot.mgt.model.vo.TaAccidentReportVo
import org.apache.ibatis.annotations.Param
import org.springframework.stereotype.Repository
import tk.mybatis.mapper.common.Mapper

@Repository
interface TaAccidentMapper : Mapper<TaAccident> {

    fun list(map: Map<String, Any>): List<TaAccidentReportVo>

    fun accidentList(map: HashMap<String, Any>): List<TaAccidentListVo>

    fun selectExcelCount(@Param("streetId") streetId: Int, @Param("date") date: String): List<ExcelCountVo>

    fun caseGroupBySection(map: HashMap<String, Any?>): List<Map<String, Int>>

    fun caseGroupByType(map: HashMap<String, Any?>): List<Map<String, Int>>

    fun caseGroupDealType(map: HashMap<String, Any?>): List<Map<String, Int>>

    fun caseGroupByTime(map: HashMap<String, Any?>): List<Map<String, Int>>

    fun accidentMap(map: HashMap<String, Any?>): List<Map<String, Int>>

    fun accidentMapAll(map: HashMap<String, Any?>): List<Map<String, Any?>>

    fun searchTaAccidentMapList(map: Map<String, Any?>): List<Map<String, Any?>>?

}